package com.yegs.jindie.controller;


import com.yegs.jindie.entity.LoggerVo;
import com.yegs.jindie.entity.Msg;
import com.yegs.jindie.service.LogService;
import com.yegs.jindie.serviceImpl.LogServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/logs")
public class LogControler {

    @Autowired
    private LogServiceImpl logService;

    @RequestMapping("findAll")
    public Msg findAll(){
        List<LoggerVo> list = logService.findAll();
        return Msg.success("logs",list);
    }

}
